import {get, post, del, put} from "@/apis/http/request";
import {BookingUserCreateShare} from "@/apis/model/booking/BookingUserCreateShareModel";

/**
* 得到列表
* @param params
*/
export const getBookingUserCreateShareList = (params: any) => get("/bookingUserCreateShare/list", params)

/**
* 得到分页列表
* @param params
*/
export const bookingUserCreateSharePage = (params: any) => post("/bookingUserCreateShare/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteBookingUserCreateShareById = (id: number) => del("/bookingUserCreateShare/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertBookingUserCreateShare = (param: BookingUserCreateShare) => post("/bookingUserCreateShare", param)

/**
* 更新数据
* @param param
*/
export const updateBookingUserCreateShare = (param: BookingUserCreateShare) => put("/bookingUserCreateShare", param)